package com.bestcem.xm.om.service.impl;

import com.bestcem.xm.common.core.domain.web.ServiceResult;
import com.bestcem.xm.om.dao.OmUserOperateLogDao;
import com.bestcem.xm.om.entity.OmUserOperateLog;
import com.bestcem.xm.om.service.OmUserOperateLogService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * om日志服务
 *
 * @author zhangfeng <feng.zhang@idiaoyan.com>
 * @version v1.0
 * @date 2022/6/22 14:48
 */
@Slf4j
@Service
public class OmUserOperateLogServiceImpl implements OmUserOperateLogService {
    @Resource
    private OmUserOperateLogDao omUserOperateLogDao;

    @Override
    public ServiceResult<String> save(OmUserOperateLog userOperateLog) {
        String id = omUserOperateLogDao.insert(userOperateLog);
        return ServiceResult.success(id);
    }
}
